package com.tjw.ec.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

/**
 * @Title: 认证服务中心
 * @Author: 田俊文
 * @Date: 2019/8/2 11:31
 */
@EnableAuthorizationServer
@SpringCloudApplication
@EnableFeignClients("com.tjw.ec")
@EnableHystrix
@EnableCircuitBreaker
@ComponentScan("com.tjw.ec")
public class EcAuthApplication {

	public static void main(String[] args) {
		SpringApplication.run(EcAuthApplication.class, args);
	}

}
